{% for model in models %}
<li {{ '{{ ' }}(Request::is('{{ route_prefix }}/{{ model.model_name }}') ? 'class="active"' : '') {{ '}}' }}>
    <a href="#" class="dropdown-toggle"><i class="icon-key"></i><span>{{ model.model_name|replace('_', ' ')|title }}</span></a>
    <ul class="submenu">
        <li {{ '{{' }} (Request::is('{{ route_prefix }}/{{ model.model_name }}') ? 'class="active"' : '')  {{ '}}' }}><a href="{{ '{{ ' }}URL::to('{{ route_prefix }}/{{ model.model_name }}') {{ '}}' }}"><i class="icon-list"></i> List</a></li>
        <li {{ '{{' }} (Request::is('{{ route_prefix }}/{{ model.model_name }}/create') ? 'class="active"' : '') {{ '}}' }}><a href="{{ '{{ ' }}URL::to('{{ route_prefix }}/{{ model.model_name }}/create') {{ '}}' }}"><i class="icon-plus"></i> Add new</a></li>
    </ul>
</li>
{% endfor %}